<?php
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
	$vorname = $auth->getIdentity()->vorname;
	$id = $auth->getIdentity()->id;
	echo '<a href="' . $this->BaseUrl() . '/Auth/view/viewbarid/' . $id . '">Hallo, ' . $vorname .  '</a>'. " " . '<a href="' . $this->BaseUrl(). '/Auth/Logout">Logout</a>';
}
else{
	echo '<a href="' . $this->BaseUrl(). '/Auth/">Login</a> <a href="' . $this->BaseUrl() . '">Registrieren</a>';
}
